import request from '@/utils/request'

/**
 * 首页统计接口
 * @param data
 * @returns {AxiosPromise}
 */
export function question(params) {
  return request({
    url: '/vocabTest/question',
    method: 'POST',
    params
  })
}

/**
 * 结束测试接口
 * @param data
 * @returns {AxiosPromise}
 */
export function endVocalTest() {
  return request({
    url: '/vocabTest/endVocalTest',
    method: 'POST'
  })
}
